# -*- coding:utf-8 -*-
import re
import sys
def chengchu(gongshi):
    new_s_s=gongshi
    if '*' in new_s_s or '/' in new_s_s:
        sub_sub_s=re.search('(\d*\.?\d*)([*/])(\d*\.?\d*)',new_s_s)
        if sub_sub_s==None:
            pass
        else:
 
            if sub_sub_s.group(2)=='*':
                sss=str(float(sub_sub_s.group(1))*float(sub_sub_s.group(3)))
                
            elif sub_sub_s.group(2)=='/':
                sss = str(float(sub_sub_s.group(1)) / float(sub_sub_s.group(3)))
               
            else:
                print('没有需要运算的乘除法。')
              
            new_s_s=gongshi[0:sub_sub_s.span()[0]]+sss+gongshi[sub_sub_s.span()[1]:]
            
            return chengchu(new_s_s)
    else:
        return new_s_s

sub_s=sys.argv[len(sys.argv)-1]
print(chengchu(sub_s))
